package com.jeesite.modules.exam.quota.dao;

import com.jeesite.common.dao.CrudDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.exam.quota.dto.ExamQuotaCopyDto;
import com.jeesite.modules.exam.quota.entity.DcSupExamQuota;
import com.jeesite.modules.exam.quota.entity.DcSupExamQuotaInfo;
import com.jeesite.modules.exam.quota.entity.DcSupExamSumQuota;
import com.jeesite.modules.exam.quota.entity.DcSupExamSumQuotaInfo;

import java.util.List;

/**
 * 考核任务指标表DAO接口
 * @author xhc
 * @version 2022-05-28
 */
@MyBatisDao
public interface DcSupExamQuotaDao extends CrudDao<DcSupExamQuota> {

    Integer findSumQuotaIsDanExist(String examId);

    void updateFileStatusById(String quotaId, String status);

    List<ExamQuotaCopyDto> queryQuotaByExamId(String examId);

    List<DcSupExamQuota>  getExamQuota(DcSupExamQuota dcSupExamQuota);

    DcSupExamQuota getDcSupExamQuota(DcSupExamQuota dcSupExamQuota);

    void deleteDcSupExamQuotaId(String dcSupExamQuotaId);

    void deleteDcSupExamQuotaInfo(String dcSupExamQuotaId);

    void deleteDcSupExamQuotaOrg(String dcSupExamQuotaId);

    DcSupExamSumQuotaInfo getByExamIdAndCreateorg(DcSupExamQuota dcSupExamQuota);

    List<ExamQuotaCopyDto> queryQuotaByParam(DcSupExamSumQuota dcSupExamSumQuota);
}